package com.ildepinc.persistence.interfaces;

import java.sql.Connection;
import java.sql.DatabaseMetaData;

public interface JdbcConnectionBehaviour {
  Connection doConnect() throws Exception;

  void doDisconnect() throws Exception;

  Boolean doesSchemaExists(String schemaName) throws Exception;

  Boolean doesTableExists(String schemaName, String tableName) throws Exception;

  Connection getConnection();

  DatabaseMetaData getDatabaseMetadata() throws Exception;

  JdbcDriverBehaviour getJdbcDriver();

  void setConnection(Connection connection);

  void setJdbcDriver(JdbcDriverBehaviour jdbcDriver);
}
